package com.karrim.server;

import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import java.net.Socket;
import java.util.Date;

public class SocketConnectionEventImpl implements SocketConnectionEvent {

    @Inject
    @AssistedInject
    public SocketConnectionEventImpl(Server server, @Assisted Socket socket, Date date) {
        this.date = date;
        this.server = server;
        this.socket = socket;
    }

    @Override
    public Date getDate() {
        return date;
    }

    @Override
    public Server getSource() {
        return server;
    }

    @Override
    public Socket getTarget() {
        return socket;
    }
    private Date date;
    private Server server;
    private Socket socket;
}